Page({
  data: {
    noticeList: []
  },
  onLoad() {
    this.getAnnouncement()
  },
  //社区公告列表
  async getAnnouncement() {
    const res = await wx.http({
      url: '/announcement'
    })
    this.setData({
      noticeList: res.data
    })
  }
})
